package com.project.communitymanagement.mapper;

import com.project.communitymanagement.common.BaseMapper;
import com.project.communitymanagement.common.Page;
import com.project.communitymanagement.entity.TbHome;
import com.project.communitymanagement.entity.TbOwner;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface TbOwnerMapper extends BaseMapper {
    TbOwner getUserByUsername(String username);
    int getUserCount();
    List<TbOwner> getAll();

    /**入职人数*/
    List<TbHome> getEntryNum();
    /**工资分布*/
    List<TbHome> getSalaryDistribution();
    /**职位分布*/
    List<TbHome> getPositionDistribution();

    List getPageReport(Page data);

    List reportListDown(Page data);

    int getTotalReport(Page data);
}